<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	               "http://www.w3.org/TR/html4/loose.dtd">

<html>
  <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    	<title>Login Reserva</title>  
    	<script type="text/javascript">
			function login(){
				var usuario = document.getElementById('usuario').value;
				var password = document.getElementById('password').value;
				alert("log0");				
				if((usuario=="gabino") && (password=="1111")) {
					alert("log1");
					window.location='contenedores/Client_home.jsp';
				}else if((usuario=="root")&&(password == "1111")){
					alert("log2");
					window.location='contenedores/Agent_home.jsp';
				}								
			}			
    	</script>  	
  </head>
  <body>
  <h1>Lineas aereas</h1>
    		
    <h2>Bienvenido</h2>
    <h4>Ingrese sus datos</h4>    
    	<table>    		
    		<tr>
    			<td>Usuario:</td>
    			 <td><input type="text" name="usuario" id= "usuario"></input> </td>    		
    		</tr>
    		<tr>
    			<td>Password: </td>
    			<td><input type="password" name ="password" id ="password"></input></td>
    		</tr>
    		<tr>
    			<td>
    				<input type="button" value="Loguear" onclick="login()"></input>
    			</td>
    		</tr>
    	</table>   
    
    <a href="./contenedores/agent_home.jsp"> AGENTE</a>
  </body>
</html> 
